package controller;

import entity.SysJob;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.*;
import service.SysJobService;

import javax.annotation.Resource;

/**
 * 岗位(SysJob)表控制层
 *
 * @author liujh
 * @since 2020-08-10 17:02:30
 */
@Controller
@RequestMapping("sysJob")
public class SysJobController {
    /**
     * 服务对象
     */
    @Resource
    private SysJobService sysJobService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysJob selectOne(Long id) {
        return this.sysJobService.queryById(id);
    }

}